UserCSS - 將列表的標記改成FontAwesome圖示
1
2
3
4
5
1. 1
2. 2
3. 3
4. 4
5. 5
無序列表
指定圖示
code:style.css
.line .indent-mark .dot::before {
display: block;
position: absolute;
top: -10px;
/* top: 3px; */
font-family: 'Font Awesome 5 Free';
content: '\f068'; /* 減號 */
font-size: 6px;
font-weight: 900;
}
@media screen and (max-width: 576px) {
.line .indent-mark .dot::before {
top: -10px;
}
}
清除原有 bullet
code:style.css
.line .indent-mark .dot {
background-color: transparent;
}
縮排 bullet 上色
code:style.css
.indent-mark .dot:nth-child(6n+2)::before {
}
.indent-mark .dot:nth-child(6n+3)::before {
}
.indent-mark .dot:nth-child(6n+4)::before {
}
.indent-mark .dot:nth-child(6n+5)::before {
}
.indent-mark .dot:nth-child(6n+6)::before {
}
.indent-mark .dot:nth-child(6n+7)::before {
}
有序列表
指定圖示
code:style.css
.line.number-list .dot {
display: list-item;
}
.line.number-list .dot::before {
position: inherit;
/* top: -11px; */
content: '\f292'; /* # */
/* font-size: 4px; *
font-size: 8px;
}
文字大小
code:style.css
/*
.line.number-list .c-0 + .dot::before {
font-size: 8px;
}
.line.number-list .c-1 + .dot::before {
font-size: 7px;
}
.line.number-list .c-2 + .dot::before {
font-size: 6px;
}
.line.number-list .c-3 + .dot::before {
font-size: 5px;
}
.line.number-list .c-4 + .dot::before {
font-size: 4px;
}
*/